<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>横向竖向</title>
  <style>
    .horizontal {
      writing-mode: horizontal-tb;
    }
    .vertical {
      writing-mode: vertical-rl;
    }
    .box {
      width: 400px;
      height: 600px;
      display: inline-block;
      border: 2px solid red;
    }
    .box2 {
      width: 130px;
      height: 600px;
      border: 2px solid blue;
      margin-left: 20px;
    }
    .top600 {
      float: left;
    }
    .align-right {
      text-align: left;
    }
    .wrapper {
      width: 1600px;
      height: 700px;
      border: 2px solid yellow;
    }
  </style>
</head>
<body>
<div class="wrapper">
  <div class="box horizontal top600">
    <h2>Heading</h2>
    <p>A paragraph. Demonstrating Writing Modes in CSS.</p>
  </div>
  <div class="box2 vertical top600 align-right">
    <h2>Heading</h2>
    <p>A paragraph. Demonstrating Writing Modes in CSS.</p>
  </div>
</div>
</body>
</html>